/*
 * Create Author  : jinpeng.chen
 * Create Date    : 2016-12-06
 * Project        : springboot-chapter5
 * File Name      : Book.java
 *
 * Copyright (c) 2010-2015 by Shanghai HanTao Information Co., Ltd.
 * All rights reserved.
 *
 */
package com.charles.chapter5;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 功能描述:  <p>
 *
 * @author : jinpeng.chen <p>
 * @version 1.0 2016-12-06
 * @since springboot-chapter5 1.0
 */
@Component
@ConfigurationProperties(prefix = "book")
public class Book {
    private String author;
    private String name;

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
